package com.tutu.service;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface ArticleService {

    // 查询（分页）
    Map<String, Object> pageByParams(Integer type, String keyWord, Integer pageNum, Integer pageSize);

    // 添加 or 修改
    Map<String, Object> saveInfo(HttpServletRequest request, Integer id, Integer type, String avatar, String title, String content);

    // 删除
    Map<String, Object> deleteById(HttpServletRequest request, Integer id);

    Map<String, Object> getInfoById(Integer id);
}
